package com.noahplat.sms.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName: OtherSmsFeign
 * @Description: 调用第三方短信平台发送短信feign
 * @Author
 * @Date 2021/2/25
 * @Version 1.0
 */
@FeignClient(name = "OtherSmsFeign", url ="http://hy.0571smsyun.com:8086")
public interface OtherSmsFeign {

    /**
     * 远程调用短信平台  发送短信验证码
     * @param username
     * @param password
     * @param mobile
     * @param content
     * @param extend
     * @param sign
     * @return
     */
    @GetMapping("/getsms")
    String otherSmsSend(@RequestParam String username, @RequestParam String password, @RequestParam String mobile, @RequestParam String content, @RequestParam String extend, @RequestParam String sign);
}
